import http from './http'
//登录
export const admin_login = ({username,password})=>{
    return http.post('/login',{username,password})
}
//修改密码
export const updata_userinfo = ({username,password,newpassword})=>{
    return http.post('/UserInfoUpdata',{username,password,newpassword})
}
//用户签到日期
export const getdate_username = ({username})=>{
    return http.post('/getDateByUsername',{username})
}
//获得验证码
export const getcode = ()=>{
    return http.get('/code')
}